package com.lxy.demo.entity;

import lombok.Data;

@Data
public class Dog {
    private String name;
    private int age;
    private Users users;

    public Dog(){
        System.out.println("狗出来了");
    }

    public Dog(String name, int age, Users users) {
        this.name = name;
        this.age = age;
        this.users = users;
    }

    public void eat(){
        System.out.println("狗吃肉");
    }
}
